import request from '@/utils/request'

/**
 * 团队、项目参赛人数
 * @returns {*}
 */
export function getList(params) {
  return request({
    url: '/league/sign/CompetitionData',
    method: 'get',
    params: params
  })
}

/**
 * 团队数量数据
 * @param params
 * @returns {*}
 */
export function groupCountsList(params) {
  return request({
    url: '/league/sign/groupCountsList',
    method: 'get',
    params: params
  })
}

/**
 * 清除报名
 * @param data
 * @returns {*}
 */
export function removeSign(data) {
  return request({
    url: '/league/sign/removeSign',
    method: 'put',
    data
  })
}

/**
 * 参赛运动员数量
 * @param params
 * @returns {*}
 */
export function playerCountList(params) {
  return request({
    url: '/league/sign/playersList',
    method: 'get',
    params: params
  })
}

/**
 * 参赛运动员其他人员数量
 * @param params
 * @returns {*}
 */
export function otherPeronInfo(params) {
  return request({
    url: '/league/sign/otherPeronInfo',
    method: 'get',
    params: params
  })
}

/**
 * 参赛人次数量
 * @param params
 * @returns {*}
 */
export function playerTimesList(params) {
  return request({
    url: '/league/sign/playerTimesList',
    method: 'get',
    params: params
  })
}

/**
 * 赛事金额
 * @returns {*}
 */
export function amountList(params) {
  return request({
    url: '/league/signOrder/cptAmountList',
    method: 'get',
    params: params
  })
}

/**
 * 参赛运动员导出
 * @returns {*}
 */
export function hasNoConfirm(data) {
  return request({
    url: '/league/sign/export/hasNoConfirm',
    method: 'post',
    params: data
  })
}

/**
 * 人数清除
 * @clearSignByShu {*}
 */
export function clearSignByShu(data) {
  return request({
    url: '/league/sign/clearSignByShu/',
    method: 'post',
    data
  })
}
